home *** CD-ROM | disk | FTP | other *** search
/ Building Homes of Our Own / Building Homes of our Own.iso / setup / data1.cab / Everything / working / siteSel.dxr / exitFrameScripts_5.ls < prev    next >
Encoding:
Text File  |  2002-09-25  |  689 b   |  30 lines

  1. property startTicks, nextPlay
  2.  
  3. on beginSprite me
  4.   global gNeighborAnimateMan, gSporadicSoundMan
  5.   if movieWaiting(gNeighborAnimateMan) then
  6.     playLotSound(gSporadicSoundMan)
  7.   end if
  8.   startTicks = the ticks
  9. end
  10.  
  11. on exitFrame me
  12.   global gNeighborAnimateMan, gSporadicSoundMan
  13.   if not movieWaiting(gNeighborAnimateMan) then
  14.     go(the frame)
  15.     if not soundPlaying(gSporadicSoundMan) then
  16.       if the ticks > (startTicks + nextPlay) then
  17.         playLotSound(gSporadicSoundMan)
  18.         startTicks = the ticks
  19.         nextPlay = random(900) + 1800
  20.       end if
  21.     end if
  22.   else
  23.     if ClearToPlayQT() then
  24.       go(the frame + 1)
  25.     else
  26.       go(the frame)
  27.     end if
  28.   end if
  29. end
  30.